
<form id="form_add">
<table>
	<tr>
		<td align="right">借款人：</td>
		<td colspan="3"><input type="text" name="emp" id="emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" size="12" title="{[$t.emp_|emp:'借款人']}">
		<input type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>		
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="" size="12"> <select name='currency' id='currency'>
			{[html_options options=$currency_option selected=CNY]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td width="20%" align="right">期限：</td>
		<td><input type="text" name="day" id="day" size="12" value=""> <select name='day_t' id='day_t'>
			{[html_options options=$day_option selected=-]}
		</select></td>
		<td align="right">类型：</td>
		<td><select name='type'>
			{[html_options options=$type_option selected=2]}
		</select></td>
	</tr>
	<tr>
		<td align="right">周期：</td>
		<td colspan="3"><input type="text" name="date1" id="date1" size="12" value="{[$smarty.now|date_format:'%Y-%m-%d']}"> 至 <input
			type="text" name="date2" id="date2" size="12" value="{[$t2|date_format:'%Y-%m-%d']}"></td>
	</tr>	
	<tr>
		<td align="right">支付：</td>
		<td colspan="3"><select name='payment' id='payment'>
			{[html_options options=$payment_option selected=2]}
		</select> <a href="javascript:void(0)" id="payment_x" onclick="Pay.collapse(this)"
			class="ui-icon ui-icon-circle-triangle-w" style="display: inline-table"></a></td>
	</tr>
	<tr id="label_payment_bank">
		<td></td>
		<td colspan="3">{[include file="finance/payment/_bank.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="5" name="content" cols="55"></textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/finance/expense/pay.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/finance/borrow/add.js?r={[$smarty.now]}"></script>
